/**
 * 作者: hxl
 * 日期: 2025-02-19 17:28:44
 * 备注: 用户限时冲榜表
 */
package com.motu.monstercity.server.game.userdata;
public class UserActTopRank extends UserActTopRankModel {
    public UserActTopRank() {
        super();
    }

    public UserActTopRank(long userId, long rankid, byte actRankType, double score, long actStarttime) {
        putUserId(userId);
        putActId(rankid);
        putActRankType(actRankType);
        putScore(score);
        putActTime(actStarttime);
    }

    public void saveMaxScore() {
        if (getMaxScore() < getScore()) {
            putMaxScore(getScore());
        }
    }

}
